package com.adv.ems.filters.report.dto;

import com.adv.ems.db.entity.ReportHourPoolDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.beans.BeanUtils;

@EqualsAndHashCode(callSuper = true)
@Data
public class ReportHourPoolDTO extends ReportHourPoolDO {

    public static ReportHourPoolDTO from(ReportHourPoolDO reportHourPool) {
        ReportHourPoolDTO reportHourPoolDTO = new ReportHourPoolDTO();
        BeanUtils.copyProperties(reportHourPool, reportHourPoolDTO);
        return reportHourPoolDTO;
    }
}
